home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / show / ui / tsShowDetailControlDlg.gui next >
Text File  |  2005-11-23  |  3KB  |  138 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine
  3. // 
  4. // Copyright (c) 2001 GarageGames.Com
  5. //-----------------------------------------------------------------------------
  6.  
  7. //--- OBJECT WRITE BEGIN ---
  8. new GuiControl(TSShowDetailControlDlg) {
  9.     profile = "GuiDefaultProfile";
  10.     horizSizing = "right";
  11.     vertSizing = "bottom";
  12.     position = "0 0";
  13.     extent = "640 480";
  14.     minExtent = "8 8";
  15.     visible = "True";
  16.     setFirstResponder = "False";
  17.     modal = "False";
  18.     helpTag = "0";
  19.  
  20.     new GuiWindowCtrl() {
  21.         profile = "GuiWindowProfile";
  22.         horizSizing = "right";
  23.         vertSizing = "bottom";
  24.         position = "195 259";
  25.         extent = "220 140";
  26.         minExtent = "8 8";
  27.         visible = "True";
  28.         setFirstResponder = "False";
  29.         modal = "True";
  30.         helpTag = "0";
  31.         text = "Detail Control";
  32.         resizeWidth = "True";
  33.         resizeHeight = "True";
  34.         canMove = "True";
  35.         canClose = "True";
  36.         canMinimize = "True";
  37.         canMaximize = "True";
  38.         minSize = "50 50";
  39.         closeCommand = "Canvas.popDialog(TSShowDetailControlDlg);";
  40.  
  41.         new GuiButtonCtrl() {
  42.             profile = "GuiButtonProfile";
  43.             horizSizing = "right";
  44.             vertSizing = "bottom";
  45.             position = "13 28";
  46.             extent = "27 20";
  47.             minExtent = "8 8";
  48.             visible = "True";
  49.             setFirstResponder = "True";
  50.             modal = "True";
  51.             command = "showToggleDetail();";
  52.             helpTag = "0";
  53.             text = "==>";
  54.         };
  55.         new GuiTextCtrl(showDetailInfoText1) {
  56.             profile = "GuiTextProfile";
  57.             horizSizing = "right";
  58.             vertSizing = "bottom";
  59.             position = "16 89";
  60.             extent = "184 18";
  61.             minExtent = "8 8";
  62.             visible = "True";
  63.             setFirstResponder = "False";
  64.             modal = "True";
  65.             helpTag = "0";
  66.             text = "Slider Sets Detail";
  67.                 FONT = "12 244 Arial";
  68.                 justify = "center";
  69.         };
  70.         new GuiTextCtrl(showDetailInfoText2) {
  71.             profile = "GuiTextProfile";
  72.             horizSizing = "right";
  73.             vertSizing = "bottom";
  74.             position = "16 112";
  75.             extent = "184 18";
  76.             minExtent = "8 8";
  77.             visible = "True";
  78.             setFirstResponder = "False";
  79.             modal = "True";
  80.             helpTag = "0";
  81.             text = "Slider Sets Detail";
  82.                 FONT = "12 244 Arial";
  83.                 justify = "center";
  84.         };
  85.         new GuiTextCtrl(showDetailText) {
  86.             profile = "GuiTextProfile";
  87.             horizSizing = "right";
  88.             vertSizing = "bottom";
  89.             position = "46 30";
  90.             extent = "80 18";
  91.             minExtent = "8 8";
  92.             visible = "True";
  93.             setFirstResponder = "False";
  94.             modal = "True";
  95.             helpTag = "0";
  96.             text = "Slider Sets Detail";
  97.                 FONT = "12 244 Arial";
  98.                 justify = "center";
  99.         };
  100.         new GuiSliderCtrl(showDetailSlider) {
  101.             profile = "GuiDefaultProfile";
  102.             horizSizing = "right";
  103.             vertSizing = "bottom";
  104.             position = "16 57";
  105.             extent = "153 23";
  106.             minExtent = "8 8";
  107.             visible = "True";
  108.             setFirstResponder = "False";
  109.             modal = "True";
  110.             variable = "value";
  111.             helpTag = "0";
  112.             range = "0.000000 1.000000";
  113.             ticks = "5";
  114.             value = "0";
  115.                 tab = "true";
  116.         };
  117.     };
  118. };
  119. //--- OBJECT WRITE END ---
  120.  
  121.  
  122. function showToggleDetail()
  123. {
  124.     if ($showAutoDetail)
  125.    {
  126.        showDetailText.setValue("Slider Sets Detail Level");
  127.       showSetDetailSlider();
  128.       $showAutoDetail = false;
  129.    }
  130.    else
  131.    {
  132.        showDetailText.setValue("Auto Detail Using Distance");
  133.       $showAutoDetail = true;
  134.    }
  135.  
  136. }
  137.  
  138.